package behaviorpattern.observer;

/**
 * ObeserverPatternDemo
 *
 * @author seer
 * @date 2018/2/7 15:40
 */
public class ObeserverPatternDemo {
    public static void main(String[] args) {
        Subject subject
                = new Subject();

        // 观察者绑定
        new BinaryObserver(subject);
        new OctalObserver(subject);

        subject.setState(123);
    }
}
